Skip to content

Conversation

@cyberdelia
Copy link
Contributor

@cyberdelia cyberdelia commented Nov 7, 2024

This adds support for Server Side Encryption via KMS on S3, by adding a new option to S3 secret named kms_key_id, and inject the proper headers to use the provided key identifier when present.

CREATE SECRET encrypted (
    TYPE S3,
    PROVIDER CREDENTIAL_CHAIN,
    CHAIN 'config',
    REGION 'eu-west-1',
    KMS_KEY_ID 'arn:aws:kms:region:acct-id:key/key-id',
    SCOPE 's3://bucket/sub/path'
);

This was tested against S3 directly, there is no tests against minio, as this seems it requires another piece of software (KES).

This is the same PR as duckdb#14475.

@samansmink samansmink merged commit d3d7325 into duckdb:main Mar 18, 2025
24 checks passed
@samansmink
Copy link
Collaborator

Looks good! I guess we will need to look into adding test infra for this in our test aws account

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants